﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using Microsoft.Ccr.Core;
using Microsoft.Dss.Core.Attributes;
using Microsoft.Dss.ServiceModel.Dssp;
using W3C.Soap;

namespace TasksLibrary
{
    [DataContract]
    public class TaskMessageRequest : Microsoft.Dss.Core.IDssSerializable
    {
        private int mTaskId = 0;

        public TaskMessageRequest()
        {

        }

        [DataMember]
        public int TaskId
        {
            get { return this.mTaskId; }
            set { if (this.mTaskId == 0) { mTaskId = value; } }
        }

        #region IDssSerializable
        public virtual void CopyTo(Microsoft.Dss.Core.IDssSerializable target)
        {
            TaskMessageRequest targetTo = (TaskMessageRequest)target;
            targetTo.TaskId = this.TaskId;
        }

        public virtual object Clone()
        {
            return null;
        }

        public virtual object Deserialize(System.IO.BinaryReader reader)
        {
            return null;
        }

        public virtual void Serialize(System.IO.BinaryWriter writer)
        {
            
        }
        #endregion
    }
}